package com.iims.product.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.iims.common.core.domain.BaseEntity;
import com.iims.common.core.domain.HttpParamMap;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

/**
 * @TableName cmis_product_type
 */
@ApiModel("产品类型")
@Data
@TableName(value = "cmis_product_type")
public class ProductType extends BaseEntity {
    
    @ApiModelProperty(name = "产品类型D", value = "主键,修改时必传", position = -1)
    @TableId(type = IdType.AUTO)
    private Integer prodTypeId;

    @ApiModelProperty(value = "类型名称/长度不能超过100个字符", required = true)
    @NotBlank(message = "产品类型名称不能为空")
    @Size(min = 0, max = 100, message = "类型名称长度不能超过100个字符")
    private String prodTypeName;

    @JsonIgnore
    @ApiModelProperty(value = "父部门ID,一级节点为0", hidden = true)
    private Long parentId;
}